package ServerDB;

import java.util.HashSet;
import java.util.Set;

/**
 * Folder data in DB
 * @author Guy & Liel
 *
 */
public class Folder {
	
	private int folderID;
	private String folderName;
	private Set<User> users = new HashSet<User>();
	
	
	/**
	 * Get folder ID
	 * @return INT
	 */
	public int getFolderID() {
		return folderID;
	}
	/**
	 * Set folder ID
	 * @param folderID
	 */
	public void setFolderID(int folderID) {
		this.folderID = folderID;
	}
	/**
	 * Get folder name
	 * @return String
	 */
	public String getFolderName() {
		return folderName;
	}
	/**
	 * set folder name
	 * @param folderName
	 */
	public void setFolderName(String folderName) {
		this.folderName = folderName;
	}
	/**
	 * get a set of users that share folder
	 * @return Set<User>
	 */
	public Set<User> getUsers() {
		return users;
	}
	/**
	 * set a new set users that share folder 
	 * @param users
	 */
	public void setUsers(Set<User> users) {
		this.users = users;
	}
	/**
	 * add user to share folder
	 * @param user
	 */
	public void addUser(User user){
		users.add(user);
	}
	

}
